#!/usr/bin/env thrift

struct Word{
	1:string word,
	2:string type,
	3:i32 id,
	4:i32 dict_type,
	5:i32 weight
}

service Cutter{
	void ping(),

	bool import_dict(1:string filename),

	string process(1:string str, 2:bool tagged),
	list<Word> process_ret_list(1:string str),

	bool add_user_word(1:string word),
	bool del_user_word(2:string word),

	i64 fingerprint(),

	list<Word> keyword(1:string str, 2:i32 count),

	void shutdown()
}

